package com.angel.architecture.dtos;

import java.io.Serializable;
import java.util.Date;

public class LoginInfoDTO implements Serializable{

	private static final long serialVersionUID = 1939433465858631789L;
	private String userName;
    private String userPassword;
    private Date loginDate;
    private Integer loginAttempts;

    public LoginInfoDTO(String userName, String userPassword){
    	super();
    	this.setUserName(userName);
    	this.setUserPassword(userPassword);
    	this.setLoginDate(new Date());
    	this.setLoginAttempts(1);
    }
    
    public LoginInfoDTO(String userName, String userPassword, Integer loginAttempts){
    	this(userName, userPassword);
    	this.setLoginAttempts(loginAttempts);
    }

	
	/**
	 * @param loginDate the loginDate to set
	 */
	protected void setLoginDate(Date loginDate) {
		this.loginDate = loginDate;
	}
	/**
	 * @return the userName
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * @param userName the userName to set
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * @return the userPassword
	 */
	public String getUserPassword() {
		return userPassword;
	}
	/**
	 * @param userPassword the userPassword to set
	 */
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	/**
	 * @return the loginDate
	 */
	public Date getLoginDate() {
		return loginDate;
	}
	/**
	 * @return the loginAttempts
	 */
	protected Integer getLoginAttempts() {
		return loginAttempts;
	}
	/**
	 * @param loginAttempts the loginAttempts to set
	 */
	protected void setLoginAttempts(Integer loginAttempts) {
		this.loginAttempts = loginAttempts;
	}
    
    
    
    

}
